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.
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.
Temperature alarm
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Temperature alarm
ooopsie. forgot to remove the \n from the auth header.
fixed version is attached.
fixed version is attached.
- Attachments
-
- Switchking-0.1.1.egplugin
- (18.58 KiB) Downloaded 66 times
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Temperature alarm
the global cache plugin is working, it is responding with an error. there is something wrong with the IR code you are trying to tell it to send.
Re: Temperature alarm
Hi!
SwitchKing plugin works now.
Do you have any idea what's wrong with my IR-code?
sendir,1:1,1,37764,1,1,171,170,21,64,21,64,21,64,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,64,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,64,21,3776
It works with EG 0.4.1.r1710 and the old plugin.
Best regards
Jonas
SwitchKing plugin works now.
Do you have any idea what's wrong with my IR-code?
sendir,1:1,1,37764,1,1,171,170,21,64,21,64,21,64,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,64,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,64,21,3776
It works with EG 0.4.1.r1710 and the old plugin.
Best regards
Jonas
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Temperature alarm
I am going to have to take a look at the code. I do not know what could have changed with the asyn module that might be causing your issue.
I do not own any globalcache products so it makes it difficult to find the problem. If you are willing to do some back and forth I am sure we can get it hammered out.
You will need to have EG 0.4 installed and EG 0.5.
to do this you will need to install either or then copy the contents of the program files (x86)\eventghost folder to another location. then uninstall it then install the other version.. You cannot run both at the same time. but you can run one and then the other.
The reason I need this is I am going to add some debugging routines to the old version to see what data is coming in and going out and then do that with the new version and compare them. we might find an issue there and we will be able to correct it. give me a day to make the changes to the plugins
I do not own any globalcache products so it makes it difficult to find the problem. If you are willing to do some back and forth I am sure we can get it hammered out.
You will need to have EG 0.4 installed and EG 0.5.
to do this you will need to install either or then copy the contents of the program files (x86)\eventghost folder to another location. then uninstall it then install the other version.. You cannot run both at the same time. but you can run one and then the other.
The reason I need this is I am going to add some debugging routines to the old version to see what data is coming in and going out and then do that with the new version and compare them. we might find an issue there and we will be able to correct it. give me a day to make the changes to the plugins
Re: Temperature alarm
Thank you very much!
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Temperature alarm
I didn't forget about ya. I have been reading the API for the global cache piece.
sendir,1:1,1,37764,1,1,171,170,21,64,21,64,21,64,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,64,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,64,21,3776
this is the command being sent.
from what I have learned is that the structure is as such for the important bits.
<command>,<always a 1>:<connector number>, <id>, <frequency>
the connector number is numbered from left to right as seen on the back of the unit.
the id is any number you want this is what the unit is going to respond back with as an identifier
the frequency needs to be between 15000 and 500000 which is correct.
I have a suspicion something is getting mangled somehow. either through unicode changed do to a system encoding thing (this is something we have worked on in EG), or in the socket library because of the system encoding changes. I have attached a version you can test out for me and see if it goes. if not we may have to set up a monkey in the middle kind of a thing to see what exactly is being sent back and forth. But i do know this. I can speed up the process of sending command quite a bit. this plugin is set up to create a new socket connection for each command that is sent. I can change that up to keep the connection alive so it will simply have to transmit the data instead of opening up a new socket.
But lets fix the first issue at hand here.
sendir,1:1,1,37764,1,1,171,170,21,64,21,64,21,64,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,64,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,64,21,64,21,3776
this is the command being sent.
from what I have learned is that the structure is as such for the important bits.
<command>,<always a 1>:<connector number>, <id>, <frequency>
the connector number is numbered from left to right as seen on the back of the unit.
the id is any number you want this is what the unit is going to respond back with as an identifier
the frequency needs to be between 15000 and 500000 which is correct.
I have a suspicion something is getting mangled somehow. either through unicode changed do to a system encoding thing (this is something we have worked on in EG), or in the socket library because of the system encoding changes. I have attached a version you can test out for me and see if it goes. if not we may have to set up a monkey in the middle kind of a thing to see what exactly is being sent back and forth. But i do know this. I can speed up the process of sending command quite a bit. this plugin is set up to create a new socket connection for each command that is sent. I can change that up to keep the connection alive so it will simply have to transmit the data instead of opening up a new socket.
But lets fix the first issue at hand here.
- Attachments
-
- GlobalCache-0.1.1.egplugin
- (25.23 KiB) Downloaded 61 times
Re: Temperature alarm
Hi!
Still get this in log:
Error: Global Cache, : 1:1 - Invalid frequency value.
Best regards
Jonas
Still get this in log:
Error: Global Cache, : 1:1 - Invalid frequency value.
Best regards
Jonas
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Temperature alarm
OK the next process to find out exactly what is going on is going to be a bit more complex.
I am not sure if you have ever used RealTerm before.
But essentially you can set up real term to connect to the global cache piece. and then open a port for a connection. that open port is what you would have EG connect to. and you have real term pass the data between the 2. but it gives you the ability to see if something is getting mangled.
Maybe I can alter the plugin to loop back on it's self so we can see what is going between the 2
Let me ask you this. I see you are in Sweden. What do you have the locale settings in windows set to?. and would you mind setting it to United States English for testing? and see if the issue goes away when you do. This will help to give me direction as to where to look. Also does your keyboard have any special characters on it? do the commas and numbers show exactly the same as a US keyboard would?.
I am not sure if you have ever used RealTerm before.
But essentially you can set up real term to connect to the global cache piece. and then open a port for a connection. that open port is what you would have EG connect to. and you have real term pass the data between the 2. but it gives you the ability to see if something is getting mangled.
Maybe I can alter the plugin to loop back on it's self so we can see what is going between the 2
Let me ask you this. I see you are in Sweden. What do you have the locale settings in windows set to?. and would you mind setting it to United States English for testing? and see if the issue goes away when you do. This will help to give me direction as to where to look. Also does your keyboard have any special characters on it? do the commas and numbers show exactly the same as a US keyboard would?.
Re: Temperature alarm
Hi!
Yes, I do have special characters on it.
I changed the local settings to US, and changed keyboard layout to US. Still get the same in the log.
I will try to get RealTerm up and running.
Best regards
Jonas
Yes, I do have special characters on it.
I changed the local settings to US, and changed keyboard layout to US. Still get the same in the log.
I will try to get RealTerm up and running.
Best regards
Jonas
Re: Temperature alarm
I've installed RealTerm now, and I THINK I got it connected to my IP2IR. But I don't have a clue to what to do now.
If you want to, you can connect to me with TeamViewer.
Best regards
Jonas
If you want to, you can connect to me with TeamViewer.
Best regards
Jonas
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Temperature alarm
it probably will b a bit easier if we can do that. I believe you are 12 hours off from my time. or somewhere there about. so you will have to tell me what time is good for you? I already have Teamviewer so that's all set.
Re: Temperature alarm
I'm 8 hours before you, I guess. I guess you're asleep right now. When you wake up, the time should be about 6 pm here in Sweden. Are you free this morning (your morning)?
Jonas
Jonas
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Temperature alarm
this morning is not going to work for me. LOL i have some things i need to accomplish. If you are free Sunday morning (tonight for me) that would be OK. its easier for me if I do it in the evening. brain is running good and not waking up. and I usually don't go to bed until 3AM or so my time.
Re: Temperature alarm
That works for me. I go to bed at 6 pm (your time). You can decide a time and just let me know before I go to bed, I have to set the alarm.
I sent this message at 5:53 PM (my time). 9:53 AM, your time?
I sent this message at 5:53 PM (my time). 9:53 AM, your time?
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Temperature alarm
OK i mean evening as in the middle of the night for me. and late afternoon/early evening for you.. LOL
Between the hours of 10 PM and 2 AM. that would make it between the hours of 2pm and 6 pm your time yes???
Between the hours of 10 PM and 2 AM. that would make it between the hours of 2pm and 6 pm your time yes???
