omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. M42e
    3. Topics

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 7
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by M42e

    • M42e

      Suggestions for WebSocket client
      Pythonista • • M42e

      4
      0
      Votes
      4
      Posts
      2084
      Views

      M42e

      Well, my first attempt was to use a direct socket connection, because my use case is primary at home within the same network. Then my thoughts went into the direction to use a server and communicate with the server using a JSON API which lead me to web sockets because of the lack of polling. As you see, it's straight forward :P

      What I want to create is a networked memory game. An extended version of the sample and to be able to play with at least two players (in the first version).

    • M42e

      Is there something like a unique device id?
      Pythonista • • M42e

      7
      0
      Votes
      7
      Posts
      3949
      Views

      omz

      @ccc From the uuid.getnode() docs:

      Get the hardware address as a 48-bit positive integer. The first time this runs, it may launch a separate program, which could be quite slow. If all attempts to obtain the hardware address fail, we choose a random 48-bit number with its eighth bit set to 1 as recommended in RFC 4122. “Hardware address” means the MAC address of a network interface, and on a machine with multiple network interfaces the MAC address of any one of them may be returned.

      (on Unix systems, it usually launches ifconfig to determine the MAC address, which isn't possible on iOS, so it falls back to the random 48-bit number)

    • M42e

      UDP Broadcast/Discover other devices
      Pythonista • • M42e

      2
      0
      Votes
      2
      Posts
      1444
      Views

      JonB

      See https://omz-forums.appspot.com/pythonista/post/6417706764992512

      If you search the forums for UDP you will also find someone who controlled a RC tank using UDP.

    • M42e

      Simple file switching sidebar
      Pythonista • • M42e

      1
      0
      Votes
      1
      Posts
      906
      Views

      No one has replied

    • M42e

      Use of the Applications:didReceiveRemoteNotification
      Pythonista • • M42e

      2
      0
      Votes
      2
      Posts
      1340
      Views

      ccc

      http://omz-software.com/pythonista/docs/ios/notification.html