Using external temperature in OP2 messaging

wdeertz

Active Member
I'm trying to create a message in OP2 which announces the external outdoor temperature. On my Omnistat2 and in PCAccess status I see the external temperature but can't seem to find a way to create a message to use this variable. I could create a user setting or flag which periodically updates the external temperature but can't find a way for this variable to be spoken.

Is there anyone to accomplish this? Hopefully I am completely overlooking something obvious but can't seem to locate how to do this. Any help appreciated.
 
I'm fairly sure you'll use up most of your "say" voices to do that.  You may want to use ranges for your temperatures because , 20, 21, 22, 23, ... 89, 90, 91, ...100 that's a lot of voices. 
 
What is the goal of this?  Do you expect to hear each degree of increase or decrease, or perhaps generalized temperatures, or will the temperature be used for something else and you just want to acknowledge the temperature was used to activate something else?
 
Take a look at this and see if this helps. You could change the instructions to "say" instead of sending serial data.  http://kb.homeauto.com/default.asp?id=553&SID=&Lang=1
 
StarTrekDoors said:
I'm fairly sure you'll use up most of your "say" voices to do that.  You may want to use ranges for your temperatures because , 20, 21, 22, 23, ... 89, 90, 91, ...100 that's a lot of voices. 
 
What is the goal of this?  Do you expect to hear each degree of increase or decrease, or perhaps generalized temperatures, or will the temperature be used for something else and you just want to acknowledge the temperature was used to activate something else?
 
Take a look at this and see if this helps. You could change the instructions to "say" instead of sending serial data.  http://kb.homeauto.com/default.asp?id=553&SID=&Lang=1
Thanks for the reply, I guess you confirmed what I thought. I can't believe there is not a direct way to use the external temperature variable in a OP2 message, seems like such a simple thing. I had thought about creating separate messages for each temperature between 45-95F but thought this was too crude and there must be an easier way to do more directly. Your reply confirms my suspicion and the fact that the OP2 is showing its age with lack of usability.

My intent was to have the outside temperature announced upon wake up time as a basis to determine clothes to wear. Hard to believe it may be easier to just look at the outside thermometers rather than having the OP2 announce the temperature. I suppose I don't need to know the exact temperature so could group for the messages to say - lower 40's, upper 40's, lower 50's, etc.

Thanks again for your reply.
 
Yup; thinking that this is where you have a look at external software to utilize with your OP2 panel.  Many forum uses are using Haiku.  Here I utilize Homeseer.  Homeseer does an hourly chime or an event based script or just a line of text that announces the time and temperature.  The temperature source is the OPII panel or one of the one wire temperature sensors.  My master bedroom tabletop touchscreen shows the weather or announces the forecast or / and shows an outdoor CCTV camera.
 
I am currently utilizing 2 Homeseer 2 boxes and 2 Homeseer 3 boxes.
 
I am also playing with a couple of OPII centric devices; both offering addendum to the OPII transport.
 
One has been running now for a bit although its a bit limited in CPU (400Mhz).  Its just a modded micro router with OpenWRT on it.  That said its tiny, has two NICS (in and out), wireless, serial/USB i/o and powered by the OPII panel.
 
It can do basic stuff via the serial port with its limited memory.  Purchased a daughter board for it allowing for more USB ports and a GPIO connection.  Looking right now to add an RTC clock (just for the OPII).  Concurrently this box or a similiar box with more CPU/Memory can multitask a bit running the Homeseer OPII plugin talking via the network interface and run simple communications to the OPII panel.  Ideally a similiarly sized microrouter with current features set, more memory would be ideal.  None is made yet though.  Comparing transaction times though via the use of the OPII panel serial port versus NIC say for alarm events to email type stuff.  I do see the serial port transactions happening faster right now. 
 
Concurrently also playing with Tiger's Arduino serial port connectivity device. (An Arduino plus another device might work better)
 
One Homeseer 2 box connects to the OPII via a serial link.  The Homeseer 2 boxes are running on Windows Server 2003 32 bit.  The HS3 boxes are talking to the OPII via a network link.  HS3 boxes run in Linux.  Both are now concurrent connections.  HS3 plugin is beta at this time.
 
The touch consoles I have run in embedded Windows (and Android and iOS and Linux).  Text to speech runs from the boxes to a zoned amplifier (Russound) which is connected to both OPII and Homeseer.  The Wintel clients also run SAPI on their own with TTS and VR such that you can use them as remote TTS/VR devices and touch consoles.  Other consoles are running Ubuntu 14.04 and are Squeezebox clients or XBMC clients (streaming live HD TV or CCTV). Preferences here are Linux and embedded wintel.  While Android works fine preference is Linux and Wintel for my touch consoles. Modifications involve soldering tiny smd pieces, bios and other motherboard modes.  Not pluginplay.
 
 
Recently purchased an open frame dual touch capacitance 17" screen to pair up with a new Intel based Windows 8.1 micro PC connected to a Kinect to see how it functions. 
 
You can do a manual speak or use a script.  Here is an example polling two temperatures; one from the HAI OPII panel and one from a 1-wire device.  This one plays a wave file, speaks the time, date and two temperatures.

sub main()

' Global Variables
    dim outsidetemp,insideMBtemp

' Main APP

' Outside Temp
      outsidetemp = HS.devicevalue(".8")*.1
' Inside Temp
          insideMBtemp = HS.plugin("HAI_System").HAI_WhatIsTemp(1)

HS.SetVolume 5, 5, true

'Playwavfile
HS.PlayWavFileEx "intel.wav",1,-1,-1,TRUE

' Speak
HS.speak "It is now $$time()" &", today $$date. " & " The outside temperature is " & outsidetemp & " degrees" & " and the inside temperature is " & insideMBtemp & " degrees.",true

HS.SetVolume 20, 20,true

 
Here is a one liner with a set of rules.  Rules are relating to when and reoccurring.  You can utilize either script or one liners for speaking.  For example; you can poll the alarm and trigger a sentence using any voice font mixed with a wave file when the alarm is off.  You can also run scripting on the touch screens and mix them say with your CCTV stuff and OPII panel stuff.
 
The time is $$time and the outside temperature is $$DVA:Jon00-CWS-05: degrees
 
Tabletop capacitance touch tablets have Gb NICs, Wireless, Atom CPUs and have done well for me.  (not currently utilizing built in DECT and Zigbee chips.).  Relating to Homeseer touch running it on xPE via a 16Gb SSD inside of the device.  Runs fine.  Also runs HAI Omnitouch Pro software with no issues.  Using POE connectivity for these via a Tycon 24 port  mid stream POE injector.  Internal HW modes have been new BIOS, added USB ports, optical HD audio out, pata ZIF SSD card.  (optional on motherboard is GSM SIM slot and SD slot).  Booting built in is 1-2 Gb MMC memory.  I have had up to 20 of these running HSTouch with concurrent connections to Homeseer 2 HSTouch server.
 
file.php

 
attachment.php

 
file.php

 
2013-11-27085211.jpg
 
pete_c said:
Yup; thinking that this is where you have a look at external software to utilize with your OP2 panel.  Many forum uses are using Haiku.  Here I utilize Homeseer.  Homeseer does an hourly chime or an event based script or just a line of text that announces the time and temperature.  The temperature source is the OPII panel or one of the one wire temperature sensors.  My master bedroom tabletop touchscreen shows the weather or announces the forecast or / and shows an outdoor CCTV camera.
 
Pete, thanks for the reply.  I've had Haiku and Haiku Helper installed for the past few months but never got around to actually looking at all the capabilities of Haiku Helper using Javascript as I am not familiar with this language.  I took a look at the Haiku Helper Javascript Bridge API documentation and see that there are many possibilities using this tool.  I can't believe i've been beating my head against the wall the past few months trying to do things within PCAccess when these functions are more easily accomplished using Javascript with Haiku Helper.  It's been a few years since my college Pascal (is this even still used?) programming classes so I guess i need to find a tutorial on Javascript structure and syntax.  Everyone says its easy so i guess I can teach myself with a few web tutorials.
 
@wdeertz
 
Yeah get comfortable with it.  Many folks here utilize Haiku Helper for some very customized stuff that works for them well.
 
Back
Top