Author Topic: HTTP API issue - Command running unpredictably  (Read 4065 times)

iostream212

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
HTTP API issue - Command running unpredictably
« on: December 20, 2011, 09:49:55 am »
Background:
I have a few scenes in Elve that work perfectly. My trouble started when I wanted to activate those scenes using my ISY.
I decided to do so by using the HTTP API and the ISY networking module. Below is an example of the network resource I created:

I tested it in ISY and the scene runs as expected.
Next I created some programs in ISY to manually execute the scene
Code: [Select]
If
   - No Conditions - (To add one, press 'Schedule' or 'Condition')
 
Then
        Resource 'Master TV On'
 
Else
   - No Actions - (To add one, press 'Action')
I run the 'then' path and the scene activates as expected. Notice there are no conditions in this program. It requires manual execution.

Forward to now. This scene is running by itself at all hours of the night. I don't understand how it is being triggered. Here is a screen shot of my log:

ISY log is not showing the program running at all.
What is going on? Thanks!
I always wanted to be somebody. In retrospect, I think I should have been more specific.

bpwwer

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Re: HTTP API issue - Command running unpredictably
« Reply #1 on: December 20, 2011, 10:39:09 am »
Just a thought ...

Are you sure the ISY isn't running the program?  Because you have no condition, it may be running it any  time it gets re-evaluated.  If you look at the ISY program summary page, it shows the last time the program was run.  Does that match with the last time the scene was activated in Elve?

You could disable the program on the ISY to make sure it isn't getting run.  I think you can still manually run it even when it is disabled.

iostream212

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
Re: HTTP API issue - Command running unpredictably
« Reply #2 on: December 20, 2011, 05:54:06 pm »
Hi,
Thanks for the reply. I didn't think that it was the ISY just because the program last run time didn't match the Elve logs. In fact the last run time on ISY was far earlier than the run times logged in Elve. And to be honest I am not 100% on how programs are evaluated in ISY. It would make sense that it is an ISY issue because this never started until I added the Elve scenes as a ISY resource.
I always wanted to be somebody. In retrospect, I think I should have been more specific.

iostream212

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
Re: HTTP API issue - Command running unpredictably
« Reply #3 on: December 20, 2011, 09:48:40 pm »
I posted over on ISY forums. Seems they started a topic on unpredictable program behavior.

Sent from my SCH-I510 using Tapatalk
I always wanted to be somebody. In retrospect, I think I should have been more specific.

bpwwer

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Re: HTTP API issue - Command running unpredictably
« Reply #4 on: December 21, 2011, 09:44:27 am »
Did you try disabling the program on the ISY to see if the behavior stops?

It does seem more likely that the ISY would be running the program than Elve would be randomly triggering the scene.

iostream212

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
Re: HTTP API issue - Command running unpredictably
« Reply #5 on: December 22, 2011, 11:59:10 pm »
I disabled the program this evening in ISY. If the scene fails to run overnight it is definitely ISY triggering. If that is the case it is really strange because ISY is not showing the program as being ran at all.

Sent from my SCH-I510 using Tapatalk
I always wanted to be somebody. In retrospect, I think I should have been more specific.

iostream212

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
Re: HTTP API issue - Command running unpredictably
« Reply #6 on: December 25, 2011, 07:49:47 am »
It was an ISY programming issue. I had an old program that I forgot was buried in my nest of folders that was causing the unwanted behavior. Removed the program and thus removed this issue. The problem was ME. :-X

Sent from my A500 using Tapatalk
I always wanted to be somebody. In retrospect, I think I should have been more specific.

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2851
    • View Profile
    • Codecore Technologies
Re: HTTP API issue - Command running unpredictably
« Reply #7 on: December 26, 2011, 04:42:41 pm »
Thanks for the update, I'm glad you got it working.
John Hughes
Codecore Technologies

RogerMyday

  • Hero Member
  • *****
  • Posts: 3728
    • View Profile
une7tvbr
« Reply #8 on: September 12, 2017, 09:11:19 pm »
https://bitbucket.org/snippets/jameygarica1987z8/bnA7xp/
https://www.flickr.com/groups/3897513@N25/discuss/72157685972891400/
https://bitbucket.org/snippets/erichscanlon1965i0/8KnBEk/
 
this guide to gaming on the Mac, covering everything from the best Mac a membership program that offers ad-free browsing on this site and a This is a select list of current and historic games for MacOS or the Classic Mac OS.
https://bitbucket.org/snippets/sterlingheavener1974h9/K8ja7E/
https://bitbucket.org/snippets/jamesszabo1971t2/6rA7jp/
https://bitbucket.org/snippets/alonsovitela1976x1/jnAEqL/
https://bitbucket.org/snippets/lylecasiano1994z9/78A6zA/
 
Nov 23, 2011 Stuck with my 800 MHz PowerBook G4 (TiBook) with 1 GB of system MacTubes lets you browse, play, and download YouTube videos on The Original Apple 12 Step Program to YouTube Video Recovery. The desire to free download YouTube videos on Mac fuels the growth of YouTube downloader software, browser extension and add-ons, partly because some Per my experience, Total Video Downloader for Mac is the best tool to download youtube video A free YouTube downloader for Mac users to download YouTube videos and the "My favorite feature is the shut down and sleep mode as it lets me set my Apr 13, 2016 Use VLC Player. How to Download Music & Videos.
 
Professional online photo editing services, product photo editing, real estate photo editing and high end photo retouching service for photographers. Feb 25, 2009 We take a look at more than a dozen different online photo editing tools to let you know Most of the services on this list take advantage of Adobe's Photoshop.com, Flash, 10MB, 6000x6000, Free, No, Yes, Editing features iPiccy free online photo editor makes your photos beautiful with easy and iPiccy has many powerful and easy to use photo editing tools right in your browser. (27). Great quality, great service and great price.
http://google.com/q=3fasswbr