Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

"export" variables.

If you have a question or need help, this is the place to be.
Post Reply
Pliind
Experienced User
Posts: 50
Joined: Tue Dec 31, 2013 7:40 pm

"export" variables.

Post by Pliind »

Hello there!

Im wondering if anybody has a solution to my problem :)

So I've got a Tellstick and a temperature sensor outdoors, i constantly get values into Eventghost.

For these i use this script

Code: Select all

p = str(eg.event.payload)
p = p.split("|")
outtemp135=p[0]
eg.globals.outtemp135 = outtemp135
So in the variable {eg.globals.outtemp135} i have my temperature!

So sending the variable to my iMon display works perfectly. So does NMA.

So my questions :)

1. How does one go about posting this temperature to terremote (so i have a button showing temp outside). DONE. Thanks Javier!

2. How do i show it on a website (html?)

3. On my iMon Display I've got this

Code: Select all

{eg.globals.outtemp135}┬░C {eg.globals.time}
What changes do i have to make to my python script to make the "eg-globals.outtemp135" to variate between humidity and outtemp?
The variable for my humidity is "eg.globals.outhum135"

Been lurking quite a while trying to use different solutions to these problems but nothing has worked for me :/

Thanks for any help in this :)
Last edited by Pliind on Sun Feb 09, 2014 9:17 pm, edited 1 time in total.
Javier
Experienced User
Posts: 73
Joined: Sun Dec 01, 2013 3:45 pm

Re: "export" variables.

Post by Javier »

Pliind
Experienced User
Posts: 50
Joined: Tue Dec 31, 2013 7:40 pm

Re: "export" variables.

Post by Pliind »

Once again, thank you! :)
Post Reply