Code Monkey home page Code Monkey logo

mjolnir-hamma's People

Contributors

cam-gerlach avatar pbitzer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mjolnir-hamma's Issues

Python interpreter in sunsaver.py

sunsaver.py in the scripts directory has Python interpreter coded as part of brokkrenv, which use on the development system. We don't use this nominally in deployment. Need to think about the best way to handle it....

Ping Failure Notification

Right now, we look for a ping failure to determine if the sensor can be reached, as a proxy for the sensor powered and operating as expected. When it fails, we send out a notification.

However, there can be a ping failure even when the sensor is on. (I think it is due to trying to ping while the sensor is sending out a data packet, as it primarily seems to happen during storms.)

Add a hook to wait for consecutive bad pings before sending out a notification.

Ensure files from stream match local write

Brokkr watches the stream of data from the sensor and writes to a Pi-attached drive. The sensor also writes data. So, we have two places where data can be found. Typically:

  1. The sensor drive is smaller than the Pi drive
  2. The sensor drive does not buffer, so under high flash rates might drop triggers.

We want to:

  • Make sure that every trigger on the Pi drive is on the sensor drive.

This will catch any case where brokkr fails to write data. Note that we don't need to worry about the converse.

  • Periodically clean sensor drive.

If it fills, the sensor goes into a reboot cycle. This can happen near daily, depending on the size of the USB drive.

Cell connectivity dropout

After about a day or so, some mjolnir systems lose cellular connectivity.

After some checking, it looks like these systems have a lot of udhcpc processes spawned. This process gets run when the "degraded" state is detected for wwan0.

A suggested fix - that has been nominally tested - is to quit udhcpc after obtaining a lease.

Too many binary files written to directory

Right now, we are writing a binary HAMMA file for every trigger. This quickly leads to a situation in which we can no longer write more files because the underlying filesystem cannot handle "a lot" of files in the directory. The error appears as misleading "not enough space" error. (Took a while to track this down.) "A lot" seems to be ~16k files.

So, we need to either figure out a way to not write so many files (I don't think this is possible), or find a way to add some sub-directories to write to. Currently I'm thinking of subclassing brokkr.outputs.binaryfile.BinaryFileOutput to dynamically add some directories on the fly, but more ideas are welcome!

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.