New Plugin - XBMCState - Xbmc addon

Hey Mic,

Just tried the new add-on on raspberry openelec ; it fails with this:

00:00:50 T:3043266560 ERROR: JSONRPC Server: Failed to connect to sdpd
00:00:50 T:3043266560 NOTICE: starting zeroconf publishing
00:00:50 T:2830083168 NOTICE: Thread Jobworker start, auto delete: true
00:00:50 T:2838471776 NOTICE: Thread CTCPServer start, auto delete: false
00:00:51 T:2951480416 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/scri$
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class ‘urllib2.URLError’>
Error Contents: <urlopen error [Errno 101] Network i$
Traceback (most recent call last):
File "/storage/.xbmc/addons/micasaverde.addon/defa$
player=MyPlayer()
File "/storage/.xbmc/addons/micasaverde.addon/defa$
urllib2.urlopen('http://%s:3480/data_request?id=$
File “./Lib/urllib2.py”, line 126, in urlopen
File “./Lib/urllib2.py”, line 400, in open
File “./Lib/urllib2.py”, line 418, in _open
File “./Lib/urllib2.py”, line 378, in _call_chain
File “./Lib/urllib2.py”, line 1207, in http_open
File “./Lib/urllib2.py”, line 1177, in do_open
URLError: <urlopen error [Errno 101] Network is unre$
–>End of Python script error report<–
00:01:15 T:2951480416 NOTICE: Thread Background Loader start, auto delete: false
00:01:52 T:3043266560 NOTICE: Previous line repeats 2 times.
00:01:52 T:3043266560 NOTICE: COMXPlayer: Opening: musicdb://4/1.mp3?albumid=1

Also, can you add support to ‘know’ when the shutdown menu has been initiated?

Cheers

Did you put your day and night device id in the addons setting and just to be sure delete the useraddon micasaverde.addon, I notice that xbmc don’t like when you install new version without deinstall it. Let me know

Dont forget to reset your xbmc after change.

@conchordian
Also try what you say on mac and windows, i delete the user data micasaverde.addon and open xbmc. Only put the vera ip and xbmcdevice id. restart the xbmc and put yes to the event. I didn’t receive any error and it was working. Could you give me more info on what you exactly done to debug it?
Thanks

The only time i receive a script error, is if i dont reset xbmc after enter the vera ip, xbmcstate or the day and night device and it normal.

Hi Mic,

What do I put for the day/night device? ; currently I don’t use that? ; just the same xbmcstate id number???

Cheers

No, if you install the day and night plugin in the vera, and you want the event to be send only when vera is in the night mode put the device id of the day and night plugin and put the event at night. If you dont want it, leave it blank but make sure that the event is at yes not at night cause you will have a script error for sure. Let mew know.

[quote=“Mic, post:63, topic:174337”]@conchordian
Also try what you say on mac and windows, i delete the user data micasaverde.addon and open xbmc. Only put the vera ip and xbmcdevice id. restart the xbmc and put yes to the event. I didn’t receive any error and it was working. Could you give me more info on what you exactly done to debug it?
Thanks[/quote]

I uninstalled the micasaverde.addon in xbmc, then deleted the \userdata settings.xml and deleted it from C:\Users\USERNAME\AppData\Roaming\XBMC\addons\packages.

I think I might have changed it to ‘night’ first before I went out of XBMC and found my day/night device id number, so it was probably that.

MiOS Apps is the plugin, pocster.

Ok, thanks. I add some notification when addon start so you know if it ok or not. Notification could be turn off in the addons setting. Will release it in short time and post it in the first post of the tread.

@pocster
You will like to have a trigger when shutdown menu is displayed? Will check for it.

http://wiki.xbmc.org/index.php?title=Window_IDs

Here a link of the menu id. Dont seems to have the shutdown menu but will check in more detail in short future.

Hey Mic,

Still having trouble here!. I uninstalled xbmcstate ; then reinstalled . No night id (don’t have the plugin) still get:

00:00:51 T:2847491168 NOTICE: UDP: Listening on port 9777
00:00:51 T:3043753984 ERROR: JSONRPC Server: Failed to connect to sdpd
00:00:51 T:3043753984 NOTICE: starting zeroconf publishing
00:00:51 T:2830713952 NOTICE: Thread Jobworker start, auto delete: true
00:00:51 T:2839102560 NOTICE: Thread CTCPServer start, auto delete: false
00:00:51 T:2952111200 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script r$
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class ‘urllib2.URLError’>
Error Contents: <urlopen error [Errno 101] Network is un$
Traceback (most recent call last):
File "/storage/.xbmc/addons/micasaverde.addon/default.$
player=MyPlayer()
File "/storage/.xbmc/addons/micasaverde.addon/default.$
urllib2.urlopen('http://%s:3480/data_request?id=vari$
File “./Lib/urllib2.py”, line 126, in urlopen
File “./Lib/urllib2.py”, line 400, in open
File “./Lib/urllib2.py”, line 418, in _open
File “./Lib/urllib2.py”, line 378, in _call_chain
File “./Lib/urllib2.py”, line 1207, in http_open
File “./Lib/urllib2.py”, line 1177, in do_open
URLError: <urlopen error [Errno 101] Network is unreacha$
–>End of Python script error report<–

Will try with the night/day plugin anyway :slight_smile:

Cheers

Right! :slight_smile:

If I uninstall, reboot, then reinstall. It seems to work but I do get this error in the log:

00:00:48 T:3043405824 ERROR: JSONRPC Server: Failed to connect to sdpd
00:00:48 T:3043405824 NOTICE: starting zeroconf publishing
00:00:48 T:2843378784 NOTICE: Thread Jobworker start, auto delete: true
00:00:48 T:2851767392 NOTICE: Thread CTCPServer start, auto delete: false
00:01:13 T:2830095456 NOTICE: Thread Background Loader start, auto delete: false
00:01:23 T:3043405824 ERROR: Texture manager unable to load file: /storage/micasaverde.addondeboun$

If I then reboot I get the error as before in the previous message.

Hope that’s of some help Mic! :stuck_out_tongue:

Hmmmmm!, spoke to soon! ; it just error’d as before even after an uninstall and reboot :-X

EDIT:
Worked now but only if I don’t reboot. The only other thing I can offer is that openelec XBMC raspberry draws high on the cpu ; like 95%+ - so it could be a timing/delay issue???

Cheers!

I don’t seem to get ‘music ended’ triggered anymore either. If I stop or pause fine, but if the track just runs too it’s natural end no trigger occurs. XBMC state still shows ‘audio start’

Might be related though to my random working/not working issue

It really strange, since i finish it, i use this version and never run in any problem. When you say you uninstall it, did you manually uninstall the micasaverde setting in the userdata? I know that im repeating that but you really must erase this folder. So there 2 folder for the addons, when you unninstall from the xbmc, the userdata micasaverde.addon stay there. Let me know?

Hey Mic,

Yep I uninstall the add-on and then remove user data. Still the same issue :cry:
I do notice on reboot sometimes it can take a while for me to ssh into the raspberry ; ie I get host refused connection down - presumably the ‘pi’ just isn’t ready yet. Not sure if your add-on needs ‘time’ or a connection which may not exist at that point? (would explain why an uninstall/reinstall (without reboot) might work)???

Cheers

p.s. you need a pi anyway for ?25!!! 8) 8)

Seeing this now:

Presumably this might actually help!. From my ‘C’ days just a 1 to a 1f perhaps! ;D

00:07:39 T:2830390368 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/sc$
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type ‘exceptions.TypeError’>
Error Contents: a float is required
Traceback (most recent call last):
File "/storage/.xbmc/addons/micasaverde.addon/de$
time.sleep(debouncing_audio)
TypeError: a float is required

Think i see your problem

Give me 30 minutes

;D You are a gentleman!!!