• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
  1. Home
  2. bream
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
B
Offline
  • Profile
  • Following 0
  • Followers 0
  • Topics 1
  • Posts 6
  • Groups 0

bream

@bream

1
Reputation
388
Profile views
6
Posts
0
Followers
0
Following
Joined Sep 23, 2018, 12:06 PM
Last Online Aug 5, 2019, 6:09 PM

bream Unfollow Follow

Best posts made by bream

  • RE: Electron Error: Cannot open display :0

    I had the same error, and the problem turned out to be that on first boot I had decided to reconfigure the pi to boot to the console rather than the desktop. Consequently I didn’t have a x server running (doh!)
    You didn’t mention that as one of your setup steps, but I though it might be worth mentioning.

    posted in Troubleshooting
    B
    bream
    Oct 5, 2018, 12:00 PM

Latest posts made by bream

  • RE: Sending notifications from python to MM

    @cyberdie
    From python, the following will result in an alert

    >>> import requests
    >>> url = 'http://MAGIC_MIRROR_IP:PORT/remote?action=SHOW_ALERT&title="This is the title"&message="And this is the message"'
    >>> requests.get(url)
    

    I can’t answer as to how you’d place an image within the alert though

    posted in Troubleshooting
    B
    bream
    Oct 31, 2018, 7:45 PM
  • RE: Sending notifications from python to MM

    @axled said in Sending notifications from python to MM:

    You have to use the right module name, in my case it is “module_7_newsfeed”, you can find this out by opening your MM in your firefox browser and use F12 Button and check the HTML source, what the name of your newsfeed module is.

    It does - the buttons work as required now. Thank you :)
    So that looks like it’s the position of the module in the config file so it’ll remain static unless I change the config for some reason.
    I really appreciate that. Thanks again.

    posted in Troubleshooting
    B
    bream
    Oct 29, 2018, 7:18 PM
  • RE: Sending notifications from python to MM

    @AxLed
    Hi, thanks for replying. That’s helpful to see spelled out.

    I’m trying to hide or show the newsfeed module at the moment and trying to figure out the url to do that.

    Based on your post and what I can figure out from the MMM-Remote-Control readme, I’ve tried the following, but they don’t work
    http://MAGIC_MIRROR_IP:PORT/remote?action=HIDE&payload={%22name%22:%22newsfeed%22}
    http://MAGIC_MIRROR_IP:PORT/remote?action=HIDE&payload=NEWSFEED
    http://MAGIC_MIRROR_IP:PORT/remote?action=HIDE& notification=newsfeed

    I’m obviously not interpreting the info in the readme correctly. Can you suggest a url that will hide the module?

    posted in Troubleshooting
    B
    bream
    Oct 29, 2018, 6:18 PM
  • RE: Electron Error: Cannot open display :0

    I am now :)

    posted in Troubleshooting
    B
    bream
    Oct 5, 2018, 1:30 PM
  • RE: Electron Error: Cannot open display :0

    I had the same error, and the problem turned out to be that on first boot I had decided to reconfigure the pi to boot to the console rather than the desktop. Consequently I didn’t have a x server running (doh!)
    You didn’t mention that as one of your setup steps, but I though it might be worth mentioning.

    posted in Troubleshooting
    B
    bream
    Oct 5, 2018, 12:00 PM
  • Sending notifications from python to MM

    Hi,

    I have a touch phat that I’d like to use to interact with modules, but the libraries for it are python only.
    That’s fine as I’m familiar with python, but I have no java script experience.
    The interactions that I’m thinking of are similar to those of the MMM-ModuleScheduler, e.g. hiding and displaying etc.

    I think my best bet is to make use of the notifications system and send post requests using the MMM-API module (though I’d be happy to receive other suggestions).

    My problem is that I can’t figure out what the post request should look like.
    The readme on the MMM-API gives this example :
    http://MAGIC_MIRROR_IP:PORT/api/v1/modules/MODULE_NAME/ACTION?payload1key=payload1value&payload2key=payload2value
    but I can’t figure out what the payloadxkey and payloadxvalues should be for, say, hiding or showing a module.
    I’ve looked at js of the MMM-ModuleScheduler and the MMM-Remote-Control but I can’t figure it out.

    Could someone provide me with example post request urls to hide and show the calendar module please, or suggest a better method please?

    posted in Troubleshooting
    B
    bream
    Sep 30, 2018, 5:47 PM
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy