Giter Club home page Giter Club logo

motifini's Introduction

Hi there ๐Ÿ‘‹

motifini's People

Contributors

davidnewhall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

motifini's Issues

crash on current open PR.

Appears to be a crash in the security spy library while shutting down the event watcher.
Also this app crashes on startup if security spy is not running.
Fix both problems.

[INFO] 2021/12/21 12:04:29 Shutting down! Caught Signal: terminated
[INFO] 2021/12/21 12:04:31 [meej] Event 'Garage' triggered subscription messages. Subscribers: 1
[INFO] 2021/12/21 12:04:31 Exiting!
panic: send on closed channel

goroutine 34 [running]:
golift.io/securityspy.(*Event).eventChans(0x1400005cec8, 0x140001b6210)
	/Users/dnewhall/go/pkg/mod/golift.io/[email protected]/events.go:364 +0xec
golift.io/securityspy.(*Events).eventStreamSelector(0x1400017dab0, 0x0, 0x12a05f200)
	/Users/dnewhall/go/pkg/mod/golift.io/[email protected]/events.go:230 +0x2c8
created by golift.io/securityspy.(*Events).Watch
	/Users/dnewhall/go/pkg/mod/golift.io/[email protected]/events.go:133 +0x98
panic: send on closed channel
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x18 pc=0x100aad9d8]

goroutine 35 [running]:
golift.io/securityspy.(*Events).eventStreamScanner.func1(0x1400017dab0)
	/Users/dnewhall/go/pkg/mod/golift.io/[email protected]/events.go:170 +0x28
panic({0x100dd26c0, 0x100e3d5a8})
	/opt/homebrew/Cellar/go/1.17.3/libexec/src/runtime/panic.go:1038 +0x21c
golift.io/securityspy.(*Events).eventStreamScanner(0x1400017dab0)
	/Users/dnewhall/go/pkg/mod/golift.io/[email protected]/events.go:180 +0x238
created by golift.io/securityspy.(*Events).Watch
	/Users/dnewhall/go/pkg/mod/golift.io/[email protected]/events.go:134 +0xb8
[INFO] 2021/12/21 12:05:47 Loading Configuration File: /opt/homebrew/etc/motifini/motifini.conf
[INFO] 2021/12/21 12:05:47 Motifini - Starting! (PID: 469)
[INFO] 2021/12/21 12:05:47 Opening Subscriber Database: /usr/local/var/lib/motifini-subscribers.json
[INFO] 2021/12/21 12:05:47 Connecting to SecuritySpy: http://127.0.0.1:8000/
[INFO] 2021/12/21 12:05:47 Exiting!
2021/12/21 12:05:47 [ERROR] connecting to securityspy: getting systemInfo: http request: Get "http://127.0.0.1:8000/++systemInfo?auth=bW90aWZpbmk6c3VwZXJzZWNyZXRwYXNzd29yZA%3D%3D&format=xml": dial tcp 127.0.0.1:8000: connect: connection refused
[INFO] 2021/12/21 12:05:57 Loading Configuration File: /opt/homebrew/etc/motifini/motifini.conf
[INFO] 2021/12/21 12:05:57 Motifini - Starting! (PID: 536)
[INFO] 2021/12/21 12:05:57 Opening Subscriber Database: /usr/local/var/lib/motifini-subscribers.json
[INFO] 2021/12/21 12:05:57 Connecting to SecuritySpy: http://127.0.0.1:8000/
[INFO] 2021/12/21 12:05:57 Exiting!
2021/12/21 12:05:57 [ERROR] connecting to securityspy: getting systemInfo: http request: Get "http://127.0.0.1:8000/++systemInfo?auth=bW90aWZpbmk6c3VwZXJzZWNyZXRwYXNzd29yZA%3D%3D&format=xml": dial tcp 127.0.0.1:8000: connect: connection refused
[INFO] 2021/12/21 12:06:07 Loading Configuration File: /opt/homebrew/etc/motifini/motifini.conf
[INFO] 2021/12/21 12:06:07 Motifini - Starting! (PID: 543)
[INFO] 2021/12/21 12:06:07 Opening Subscriber Database: /usr/local/var/lib/motifini-subscribers.json
[INFO] 2021/12/21 12:06:07 Connecting to SecuritySpy: http://127.0.0.1:8000/
[INFO] 2021/12/21 12:06:07 Exiting!
2021/12/21 12:06:07 [ERROR] connecting to securityspy: getting systemInfo: http request: Get "http://127.0.0.1:8000/++systemInfo?auth=bW90aWZpbmk6c3VwZXJzZWNyZXRwYXNzd29yZA%3D%3D&format=xml": dial tcp 127.0.0.1:8000: connect: connection refused
[INFO] 2021/12/21 12:06:17 Loading Configuration File: /opt/homebrew/etc/motifini/motifini.conf
[INFO] 2021/12/21 12:06:17 Motifini - Starting! (PID: 553)
[INFO] 2021/12/21 12:06:17 Opening Subscriber Database: /usr/local/var/lib/motifini-subscribers.json
[INFO] 2021/12/21 12:06:17 Connecting to SecuritySpy: http://127.0.0.1:8000/
[INFO] 2021/12/21 12:06:17 Event Stream Watcher Started
[INFO] 2021/12/21 12:06:17 SecuritySpy Event Stream Connected!
[MSGS] 2021/12/21 12:06:18 Authorized on account CraftSpyBot
[MSGS] 2021/12/21 12:06:18 Connecting to Telegram!

Add a gui.

Add a gui for macOS so this thing is slightly easier to maintain. Make it optional in config?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.