question

itsme avatar image
itsme asked

Add a data field to a DBUS device

Hello,

I'm playing with the "dbus-mqtt-devices" from freakent (https://github.com/freakent/dbus-mqtt-devices)

Is it possible, to add a field, for example "location", in a gps-device? I want to fill this field by MQTT.

Thanks for every idea/help...


MQTT
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

3 Answers
itsme avatar image
itsme answered ·

Well, solved it again by myself... ;-)

The way was to modify the "services.yml" in the /data/drivers/dbus-mqtt-devices.../

added this code at the end of the gps-section

City:
    description: "GPS City"
    default: "GPS Ort"
    persist: true

Then pushed the data via Node-Red (large image)

W/<portal id>/gps/<device instance>/City

The result is what i want. The country and the city on the Venus OS Screen for our RV:

1676624369937.png



1676624369937.png (81.8 KiB)
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

paul-kassenaar avatar image
paul-kassenaar answered ·

@ItsMe

Nice you picked a city in Holland as an example.

I would like to display there the weatherforcast.

My plan is an call to Openweather API and than display the json result somehow.

You think this is feasable and can you point me to a direction?

Thks form Holland


3 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

itsme avatar image itsme commented ·
;-) I like Holland...

Well, I also have thoughts and plannigs to implement the weatherforcast. But actually not in progress. Maybe in the next months, when it's too cold for traveling. Openweather is my favourite service as well. I'll let you know about the progress...

0 Likes 0 ·
paul-kassenaar avatar image paul-kassenaar itsme commented ·
@ItsMe


Dear itsme,

Would be very interested to see how you would do this.
I'm I right this has to be done by MQTT and than an json message on the dbus?
The MQTT is not that hard but to get it published on the dbus is a hurdle for me.
Guess I have to use the dbus-MQTT driver.

Thanks for asy directions in advance

0 Likes 0 ·
paul-kassenaar avatar image paul-kassenaar paul-kassenaar commented ·

Got it to work,

1698669773609.png

0 Likes 0 ·
1698669773609.png (6.8 MiB)
gone-sailing avatar image
gone-sailing answered ·

I'm glad the dbus-mqtt-devices driver is working for you. Is that GX UI using GuiMods? Did you customise the UI too?

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

itsme avatar image itsme commented ·

I did many customization to the GUI in the last two years. The fantastic work of Kevins GUI-Mods were my base. My goal was having maximum information on one screen that should not look to overloaded...

... and THANK YOU for your great work as well !





0 Likes 0 ·

Related Resources