UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    [For testing] Radio Alarm for Ubuntu Touch

    Scheduled Pinned Locked Moved App Development
    8 Posts 4 Posters 82 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      janvle
      last edited by

      Radio-alarm

      One of the things I like: waking up to good music. So I made a radio alarm app.

      • It plays an internet stream URL
      • It has customizable volume, fade-in-time and snooze time
      • It shows a notification dialog with snooze option
      • It has fall-back audio if internet connection fails

      It is based on systemd timers and services. For details: see the documentation.

      For the first alarm, you need to type or copy/paste full URLs in the app. Not the nicest UI-design, I know. The ones below may get you going:

      • http://icecast.omroep.nl/radio4-bb-mp3
      • http://icecast.vrtcdn.be/klara-high.mp3
      • http://radios.rtbf.be/classic21-128.mp3
      • http://as-hls-ww-live.akamaized.net/pool_23461179/live/ww/bbc_radio_three/bbc_radio_three.isml/bbc_radio_three-audio=128000.norewind.m3u8

      For the fall-back audio you also need a URL (of a local audio file).

      Limitations

      • the app is unconfined, because I have not found confined ways to
        • show a notification dialog (I am not the only one, see https://forums.ubports.com/topic/11375/send-notification-locally-from-qt-c-qml-app.)
        • create/delete systemd service and timer files in ~/.config/systemd/user (the app uses QProcess to do that)
        • play audio streams (internet or local) windowless (in the background); I now use an executable built on GStreamer
      • all alarms are off after reboot
      • the notification dialog disappears after a period of 10 minutes; to switch an alarm off after that time, open the app and tap 'Stop running alarms'
      • you can test station URLs and alarms, but the UI is quit provisional

      Testing

      If you feel like trying it out: please do & comment!

      • download the source https://gitlab.com/janvle1/ut-radioalarm-3
      • build with clickable
      Vlad NirkyV SanderS 3 Replies Last reply Reply Quote 3
      • Vlad NirkyV Online
        Vlad Nirky @janvle
        last edited by

        @janvle
        I have compiled it.
        On launch, app fails (on my phone) with aa-exec: 'radioalarm-3.janvle_radioalarm-3_3.1.0' does not exist

        Maybe could you add CI to your repo.

        SanderS G 2 Replies Last reply Reply Quote 0
        • SanderS Online
          Sander @janvle
          last edited by

          @janvle Cool to see this being released publicly on the forum! I've been a happy user of your app behind the screens for a while now. I'll try to build and install this new version.

          1 Reply Last reply Reply Quote 0
          • SanderS Online
            Sander @Vlad Nirky
            last edited by

            @Vlad-Nirky The app builds and runs here fine. I'm using Clickable 8.8.0 and am on 24.04-1.3 RC.

            1 Reply Last reply Reply Quote 0
            • G Offline
              gpatel-fr @Vlad Nirky
              last edited by

              @Vlad-Nirky

              to settle the matter between the habitual user of this app and you, I compiled and installed this app and it worked fine here (well the alarm worked one time and that's all I wanted to know).

              Maybe you use 24.04-2.x ? For an app that use advanced features, it could be possible that it is easily broken with new changes. I use stable.

              Vlad NirkyV 1 Reply Last reply Reply Quote 0
              • Vlad NirkyV Online
                Vlad Nirky @gpatel-fr
                last edited by

                @gpatel-fr
                I use 24.04-2.x but have tried on the other phone with 24.04-1.x with the same result.
                I'm updating clickable images (but it was already 8.8.0)
                I have download the code through the zip file, will try git commands

                Vlad NirkyV 1 Reply Last reply Reply Quote 0
                • Vlad NirkyV Online
                  Vlad Nirky @Vlad Nirky
                  last edited by

                  OK run fine now.

                  1 Reply Last reply Reply Quote 1
                  • Vlad NirkyV Online
                    Vlad Nirky @janvle
                    last edited by

                    @janvle
                    Hmmm.
                    Cool app!
                    Thanks for this!
                    Ahhh Classic21 😉

                    1 Reply Last reply Reply Quote 0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • First post
                      Last post