-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Miscellanous updates #5
base: main
Are you sure you want to change the base?
Conversation
saxofon
commented
Mar 28, 2024
- send OBIS data in separate mqtt messages
- only send data that has changed
- debug logging via mqtt
- build procedures automated in Makefile
* send OBIS data in separate mqtt messages * only send data that has changed * debug logging via mqtt * build procedures automated in Makefile Signed-off-by: Per Hallsmark <[email protected]>
Signed-off-by: Per Hallsmark <[email protected]>
Signed-off-by: Per Hallsmark <[email protected]>
Yes, that is a good idea!
…On Thu, 18 Apr 2024 at 20:54, Stefan Karlsson ***@***.***> wrote:
@stefan-karlsson commented on this pull request.
________________________________
In Makefile:
> +
+$(shell basename $(PICO_RST)):
+ curl -O $(PICO_RST)
+
+$(shell basename $(MP)):
+ curl -O $(MP)
+
+$(shell basename $(UMQTT)):
+ curl -LRJO $(UMQTT)
+
+.PHONY: dependencies
+dependencies: $(shell basename $(PICO_RST)) $(shell basename $(MP)) $(shell basename $(UMQTT))
+
+.PHONY: deploy
+deploy: dependencies
+ cp $(shell basename $(PICO_RST)) /run/media/per/RPI-RP2
I would remove the references to "per".
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
|
||
.PHONY: deploy | ||
deploy: dependencies | ||
cp $(shell basename $(PICO_RST)) /run/media/per/RPI-RP2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cp $(shell basename $(PICO_RST)) /run/media/per/RPI-RP2 | |
cp $(shell basename $(PICO_RST)) /media/$(USER)/RPI-RP2 |
deploy: dependencies | ||
cp $(shell basename $(PICO_RST)) /run/media/per/RPI-RP2 | ||
sleep 15 | ||
cp $(shell basename $(MP)) /run/media/per/RPI-RP2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cp $(shell basename $(MP)) /run/media/per/RPI-RP2 | |
cp $(shell basename $(MP)) /media/$(USER)/RPI-RP2 |
|
||
.PHONY: unit-test | ||
unit-test: | ||
sudo stty -F /dev/ttyUSB0 raw |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the path here depends on you operating system and slot selected
|
||
.PHONY: mqtt-viewer | ||
mqtt-viewer: | ||
sub --auto-reconnect \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall it be mqttcli sub --auto-reconnect
? Were is the mqttcli downloaded, multiple variants exists :)
.PHONY: mqtt-viewer | ||
mqtt-viewer: | ||
sub --auto-reconnect \ | ||
--broker tcp://$$(grep MQTTHost config.py.home | cut -d\' -f2):1883 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--broker tcp://$$(grep MQTTHost config.py.home | cut -d\' -f2):1883 \ | |
--broker tcp://$$(grep MQTTHost config.py | cut -d\' -f2):1883 \ |
mqtt-viewer: | ||
sub --auto-reconnect \ | ||
--broker tcp://$$(grep MQTTHost config.py.home | cut -d\' -f2):1883 \ | ||
--topic $$(grep MQTTTopic config.py.home | cut -d\' -f2)/# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--topic $$(grep MQTTTopic config.py.home | cut -d\' -f2)/# | |
--topic $$(grep MQTTTopic config.py | cut -d\' -f2)/# |
PSK = '<PSK>' | ||
MQTTHost = '<IP to mqtt server>' | ||
MQTTTopic = 'electric-meter/main' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybee add user and password for the MQTT client?