Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 8 of 8
  1. #1
    Senior Member cparker's Avatar
    Join Date
    Oct 2005
    Location
    Hampshire, United Kingdom
    Posts
    608

    Jive HTTPS Support

    Hi

    I'm looking to write a screensaver that will pull data from a URL but its only available as https, http is not supported. I had a look through the Jive Sockethttp but couldn't see any obvious https support

    Is it supported?
    www.spicefly.com - ** Spicefly SugarCube ** - A hassle free acoustic journey through your music library using MusicIP. Plus the finest MusicIP installation guides, enhanced MIP Interface and SpyGlass MIP the Windows Automated MusicIP Headless Installer.

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,391

    Jive HTTPS Support

    > I'm looking to write a screensaver that will pull data from a URL but
    > its only available as https, http is not supported. I had a look
    > through the Jive Sockethttp but couldn't see any obvious https support
    >
    > Is it supported?


    TBH.: I'm not sure. You're talking about pulling in data from the player
    directly, without a server side plugin? I'd expect problems. Even if
    https was basically supported, many of the libraries certainly are
    outdated. I'd use a plugin to handle this.

    --

    Michael

  3. #3
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,600
    Can you suggest a suitable existing plugin to look at for how to do this? I've thought about adding a Jivelite screensaver that shows a live satellite view, and/or a day/night map. I've found a nice web site that does this (fourmilab), and it can be configured to give a URL for a custom image.


    This image should be a map showing cloud cover and day/night at 13:10 GMT today.



    Presumably a plugin would pull this image to a local file on the server every few minutes, and the screensaver applet would get it from the server.

  4. #4
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,391

    Jive HTTPS Support

    > Presumably a plugin would pull this image to a local file on the server
    > every few minutes, and the screensaver applet would get it from the
    > server.


    Another approach: you could use the image proxy on mysb to serve the
    image to your app. It would handle the https endpoint for you and serve
    over plain text http.

    --

    Michael

  5. #5
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,600
    Quote Originally Posted by mherger View Post
    Another approach: you could use the image proxy on mysb to serve the
    image to your app. It would handle the https endpoint for you and serve
    over plain text http.
    In fact it seemed easiest to me to just issue a wget command via the host operating system. Jivelite may not cope with https, but the underlying OS probably will:
    Code:
    os.execute('wget "https://www.fourmilab.ch/cgi-bin/Earth?img=cloudy.bmp&dynimg=y&opt=-p" -O /home/tc/earth.bmp')
    Here's a proof of concept. If I can put this inside a timer and update it, say, once a minute the image should move about one pixel at a time (except for bigger screens: my 1920x1080 TV would need two updates per minute to ensure single-pixel movements).

  6. #6
    Senior Member
    Join Date
    Feb 2011
    Location
    Cheshire, UK
    Posts
    4,600
    What’s the underlying OS?
    Crontab?
    VB2.4 storage QNAP TS419p (NFS)
    Living Room - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
    Office - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3 -> Onkyo CRN755 -> Wharfedale Modus Cubes
    Dining Room -> SB Boom
    Kitchen -> UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) - Pi2+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
    Everything controlled by iPeng

  7. #7
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,600
    Quote Originally Posted by d6jg View Post
    What’s the underlying OS?
    Crontab?
    The photo is from a Raspberry Pi running pCP, with Jivelite running over HDMI to my TV. But the same applet works on a Joggler running Ubuntu Bionic.

  8. #8
    Senior Member chill's Avatar
    Join Date
    Mar 2007
    Location
    Nottingham, UK
    Posts
    1,600
    ...and on a Pi Zero running Jivelite on a Pirate Audio board :-)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •