Comments (1)
Hi Stephen,
Yes, setting valid_prefix
in the function get_ipaddress
of nodehealth.py
should be the only change you need to make to get the new 0.3.0 version of imagenode
working versus the old one. Sorry, I should have documented that. I listed the new restart event message in HISTORY.md
for 0.3.0. The ip_address_prefix
will become an optional YAML item in the node:
section. It is part of preparing the imagenode
and imagehub
code for pushing the my first librarian
version to GitHub. To help the librarian
monitor the status of all the imagenodes, I've added a 'Restart' event message to imagnode
. It sends a multi-field message each time the imagenode
starts or restarts. The message looks like this:
2021-01-09 07:59:11,802 ~ Barn|Restart|rpi12|RPi|192.168.86.121|860|290.87
where the fields after the word Restart are imagenode characteristics helpful to the librarian
:
... |Restart| <<localhost name>> | <<system type>> | <<ip address>> | <<RAM size>> | << time since last restart >>
The plan is to add a YAML option named ip_address_prefix
and document it. If it is not provided, something (TBD) will be substituted for the ip address in the restart message. The code in the function get_ipaddress
returns an externally usable ip address in numeric format.
This new restart message appears in the imagehub event messages logs. I also changed the imagehub log rotation schedule. The change is described in imagehub issue # 4. Again, I apologize for not documenting this 'half built' code change. I am interating changes simultaneously in imagenode
, imagehub
and librarian
so I can get the first push of librarian
done.
If you catch any other issues with 0.3.0, please post them. I'll leave this issue open until I've got the ip_address_prefix
YAML option built and documented. If you want to set up a first draft of the new ip_address_prefix
in settings and document them in a pull request, that would be helpful. I won't get to that for a while. And I still need to decide what I want to do when an ip address prefix is not provided. I definitely want it to be optional, but need to put something in the restart message. Maybe just 'None' for now.
Thanks,
Jeff
from imagenode.
Related Issues (10)
- High resolution image capture problem HOT 8
- Multiple overlaid timestamps on an image being sent by detect_motion HOT 8
- Multiple motion ROI's with one RPi camera HOT 3
- The 'send_debug' parameter in the yaml file has no effect HOT 2
- REP checking fails when sending images in thread HOT 1
- Test1 does not use correct path to YAML for me HOT 1
- Implementation HOT 51
- AttributeError: module 'signal' has no attribute 'SIGALRM' - receive_test.py HOT 3
- Temperature Sensor DHT11/DHT22 code HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imagenode.