Jump to content

Search the Community

Showing results for tags 'influx'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
    • Emby Premiere Purchase/Subscription Support
    • Feature Requests
    • Tutorials and Guides
  • Emby Server
    • General/Windows
    • Android Server
    • Asustor
    • FreeBSD
    • Linux
    • NetGear ReadyNAS
    • MacOS
    • QNAP
    • Synology
    • TerraMaster NAS
    • Thecus
    • Western Digital
    • DLNA
    • Live TV
  • Emby Apps
    • Amazon Alexa
    • Android
    • Android TV / Fire TV
    • Windows & Xbox
    • Apple iOS / macOS
    • Apple TV
    • Kodi
    • LG Smart TV
    • Linux & Raspberry Pi
    • Roku
    • Samsung Smart TV
    • Sony PlayStation
    • Web App
    • Windows Media Center
    • Plugins
  • Language-specific support
    • Arabic
    • Dutch
    • French
    • German
    • Italian
    • Portuguese
    • Russian
    • Spanish
    • Swedish
  • Community Contributions
    • Ember for Emby
    • Fan Art & Videos
    • Tools and Utilities
    • Web App CSS
  • Testing Area
    • WMC UI (Beta)
  • Other
    • Non-Emby General Discussion
    • Developer API
    • Hardware
    • Media Clubs

Blogs

  • Emby Blog

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 1 result

  1. Hello Folks, After the success of getting a count of the current NowPlayingItem entries in the Sessions API, I am now trying to get a list of the Users and what they are currently playing - then send that to my InfluxDB to show in my Grafana server. I am nearly there with this command line, but cannot quite get it so that JQ only shows those session users who are actually playing something... wget -q -O - "http://localhost:8096/emby/Sessions?api_key=3469exxxxxxxxxxxxxxx201ef3f" | jq -M '.[].UserName, .[].NowPlayingItem.Name' will show me the following... null "Paul" "Tracey" "Sam" "Tom" "Katie" null "The Secret of the Unicorn (1)" null null null null ...which is every possible user. In the above example, only user "Paul" is actually playing ""The Secret of the Unicorn (1)". If I add the JQ options to now show 'nulls'... wget -q -O - "http://localhost:8096/emby/Sessions?api_key=3469exxxxxxxxxxxxxxx201ef3f" | jq -M '.[].UserName, .[].NowPlayingItem.Name | select(. != null)' then I can get it to this output... "Paul" "Tracey" "Sam" "Tom" "Katie" "The Secret of the Unicorn (1)" ...which is correct but still shows me users that are not playing anything at that time! Does anyone have knowledge of JSON and JQ or the API so that I can just get a list of those users that are playing an item now. I would be happy with this output... "Paul" "The Secret of the Unicorn (1)" ...or even better - turn it in to a key + value pair like this... { "Paul": "The Secret of the Unicorn (1)" } ...so that I can send that to a bash script and then to my InfluxDB. Thanks in advance! Regards, Paully
×
×
  • Create New...