Hi,
has somebody an idea how I can share my sun detection, temperature… with the Pimatic of my neighbor?
Would be nice to do this via telegram bots, unfortunately bots can’t communicate to each other. Is there an other way as a VPN between us?
-
How to share my Pimatic sun detection status with the Pimatic system of my neighbor
-
For example, through public mqtt broker.
Pimatic = Smart Home
-
Thx will give it a try!
-
or maybe via the telegram plugin. dunno if this is possible that easy but maybe worth a try …
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
@Dan is this possible somehow? sorry for the question since i am not into the telegram matter…
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
And is it not better to use the standard for data exchange between machines?
If I know the Telegram is not intended for this.I have been thinking about starting a broker for data exchange between Pimatic users.
Should anyone be interested?Pimatic = Smart Home
-
As @leader21 said I think it should be possible to use pimatic-telegram which provides bi-directional integration with Telegram.See https://github.com/SenTzu01/pimatic-telegram
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
I always try to deal with the simplest, more compatible and least time-consuming solutions.
In case of mqtt about 5-10 min.
And since you will want to join someone with another SW on this topic, it’s still a far better solution. Implementation will be easy. But it probably will be implemented.Pimatic = Smart Home
-
@mwittig said in How to share my Pimatic sun detection status with the Pimatic system of my neighbor:
As @leader21 said I think it should be possible to use pimatic-telegram which provides bi-directional integration with Telegram.See https://github.com/SenTzu01/pimatic-telegram
I’m using telegram and I already tried to let my bot speak to the bot of my neighbor, but Telegram does not support bot-to-bot communication see here.
-
@OrTiN said in How to share my Pimatic sun detection status with the Pimatic system of my neighbor:
bot-to-bot
I think you need to share an account. I looked into the configuration matter and I think it is rather sophisticated and will take some time to configure.
As @wutu pointed “cloud” mqtt broker may be the better choice for you.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Let me read up on the thread and see what is required…
Without further investigation, bot-to-bot comms or likewise would require heavy coding, and surpasses the purpose of Telegram, MQTT or API calls over ssh would probably be a better option. Another thought, isn’t it possible for the neighbour to receive the data from the device over 433Mhz directly or something?"Screw the captain. It's the engineer running the ship!"
pimatic-telegram, pimatic-tts, pimatic-woox, pimatic-lg-smart-tv, pimatic-spotify, pimatic-wakeuplight and some not-announced plugins -
Or just with a shelldevice and a curl over the pimatic api
-
@Dan: It’s to far away. To handle this it would be necessary to built a more powerful sender and a more sensitive receiver. Before I make this it is easier to built a own local sun detection for my neighbor. It’s not the big deal to make it, it was only an idea to save money and time…
@chris: For this it would be necessary to be in the same network or do you mean something else?
-
not the same network…
when you can access your pimatic over the internet, then you can curl your api from the pimatic of your neighbor…but the same network would also be possible…
-
Another possibility may be to use https://opensensemap.org/ free cloud service for sensebox. As it is open source it should be possible to use the service to publish data from pimatic (mimicking a sensebox). Note, however, the data is public (readable for everybody).
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@chris: I don’t want to access my pimatic from the internet. Okay, I have an VPN access, but this is only in use when it is really necessary. Not permanently!
@mwittig: Will check it sound great. The data I want to sent are not really informative for the whole world -
@OrTiN said in How to share my Pimatic sun detection status with the Pimatic system of my neighbor:
Will check it sound great. The data I want to sent are not really informative for the whole world
Yes. you may even set a geo-location which is matches your city but not exactly the location where you live. I’ll also have look into this when I find some time. Already thought about the when we talked about the sensebox stuff.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Hi all,
this is the solution. I create an account on OpenSensemap and wrote a short script to upload my measurements or get them.Here my script as example:
#!/bin/bash # Werte nach OpenSenseMap posten bzw. holen # ------------------------------------------------------------------------------ mode=$1 type=$2 value=$3 postValue='{"value":'$value'}' post () { case $type in tempRef) curl -H "Content-Type: application/json" -X POST -d $postValue https://api.opensensemap.org/boxes/:boxID/:sensorID ;; tempSonne) curl -H "Content-Type: application/json" -X POST -d $postValue https://api.opensensemap.org/boxes/:boxID/:sensorID ;; lux) curl -H "Content-Type: application/json" -X POST -d $postValue https://api.opensensemap.org/boxes/:boxID/:sensorID ;; esac } get () { case $type in tempRef) curl -s https://api.opensensemap.org/boxes/:boxID | jq -r '.sensors[0].lastMeasurement.value' ;; tempSonne) curl -s https://api.opensensemap.org/boxes/:boxID | jq -r '.sensors[1].lastMeasurement.value' ;; lux) curl -s https://api.opensensemap.org/boxes/:boxID | jq -r '.sensors[2].lastMeasurement.value' ;; esac } case $mode in post) post ;; get) get ;; esac # ------------------------------------------------------------------------------ exit 0
A rule for upload:
When $temperature changes then execute "sh .../.../script.sh post temp $temperature >/dev/null 2>&1"
Get it into a ShellSensor with command:
sh .../.../script.sh get temp
You need the program ‘jq’ as mentioned in this post.
sudo apt-get install jq
That’s it!