Skip to content

a Mosquitto DMX light setter and MQTT node middleware

Notifications You must be signed in to change notification settings

wysiwyggins/phantom-light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

I live at pi@mosquittopi.local password is pb3...

the doorknob is wwiggins@doorknobpi.local password is pb3...

doorknob code is in the doorknob directory

Here's an example of what the mudroom api json looks like-

{
  "character": {
    "pk": 134,
    "kind": "Bird",
    "name": "Kree",
    "description": "The nestlings have little or no features, so a parent continues to sit on the eggs of wild birds at any time. These are places, such as a wren, the male will build the nest and raises young to start the cycle all over again. Birds begin their life cycle. Other birds stay in the wood when a hawk is near. When a nestling grows its flight feathers and is often fed by its parents for several weeks more.  Kree the bird has been hunted through life by its enemy, Lucas, an intoxicating iguana.",
    "events": [
      {
        "created": "2023-02-09T16:32:27.862389-08:00",
        "text": "Kree knelt and got their knees dirty at Wiley Ramsey Wiggins's cenotaph in the Topaz Room"
      },
      {
        "created": "2023-02-09T16:32:18.594522-08:00",
        "text": "Kree knelt and got their knees dirty at Wiley Ramsey Wiggins's cenotaph in the Topaz Room"
      }
    ],
    "skills": [
      {
        "name": "ferocity",
        "level": -6
      },
      {
        "name": "grayness",
        "level": 6
      },
      {
        "name": "dapperness",
        "level": 1
      },
      {
        "name": "restfulness",
        "level": -9
      }
    ],
    "inventory": [],
    "arrow_count": 0,
    "key_count": 0,
    "trap_count": 0,
    "dead": false,
    "pub_date": "2022-06-06T12:33:26.641602-07:00",
    "death_date": null,
    "deathnote": null
  },
  "room": {
    "pk": 3657,
    "name": "Topaz Room",
    "color_name": "topaz",
    "color_slug": "topaz",
    "color_hex": "#13bbaf",
    "description": "You note that the floor nearby. A strange ceiling is similarly marbled, but the room looks like a scythe on a forest. \nThis property is currently in need of a lot of TLC!! This property is fenced and features a manufactured home with tons of potential! Cozy home has room to build or expand rooms of your choice. ",
    "exits": [
      {
        "pk": 3659,
        "direction": "PORTAL",
        "name": "Easter purple Room",
        "color_slug": "easter-purple",
        "color_hex": "#c071fe",
        "visible_traps": [],
        "locked": false
      },
      {
        "pk": 3658,
        "direction": "PORTAL",
        "name": "Heliotrope Room",
        "color_slug": "heliotrope",
        "color_hex": "#d94ff5",
        "visible_traps": [],
        "locked": false
      },
      {
        "pk": 3660,
        "direction": "DOWN",
        "name": "Golden Room",
        "color_slug": "golden",
        "color_hex": "#f5bf03",
        "visible_traps": [],
        "locked": false
      },
      {
        "pk": 3661,
        "direction": "DOWN",
        "name": "Dark pink Room",
        "color_slug": "dark-pink",
        "color_hex": "#cb416b",
        "visible_traps": [],
        "locked": true
      }
    ],
    "occupants": [
      {
        "pk": 170,
        "kind": "Ghost",
        "name": "Popo Bawa"
      },
      {
        "pk": 171,
        "kind": "Human",
        "name": "Nicolas Wiler"
      },
      {
        "pk": 134,
        "kind": "Bird",
        "name": "Kree"
      }
    ],
    "npcs": [
      {
        "pk": 12,
        "name": "Tinker",
        "greeting": "\"I can hammer out a broken shield in an instant!\""
      }
    ],
    "items": [
      {
        "abstract_item": {
          "pk": 52,
          "name": "Spent Candle",
          "description": "It's all burned up!",
          "item_type": "JUNK",
          "active_adjective": null
        },
        "is_active": false,
        "items": [
          {
            "pk": 3787,
            "name": "Spent Candle",
            "color_name": "mango",
            "color_hex": "#ffa62b",
            "is_active": false,
            "is_usable": false,
            "is_takeable": true
          }
        ]
      },
      {
        "abstract_item": {
          "pk": 53,
          "name": "Spent Incense",
          "description": "It's all burned up!",
          "item_type": "JUNK",
          "active_adjective": null
        },
        "is_active": false,
        "items": [
          {
            "pk": 3731,
            "name": "Spent Incense",
            "color_name": "pusyellow",
            "color_hex": "#c8f500",
            "is_active": false,
            "is_usable": false,
            "is_takeable": true
          },
          {
            "pk": 3791,
            "name": "Spent Incense",
            "color_name": "sunflower",
            "color_hex": "#ffc512",
            "is_active": false,
            "is_usable": false,
            "is_takeable": true
          },
          {
            "pk": 3792,
            "name": "Spent Incense",
            "color_name": "purple blue",
            "color_hex": "#632de9",
            "is_active": false,
            "is_usable": false,
            "is_takeable": true
          }
        ]
      }
    ],
    "visits": [],
    "cenotaph": null,
    "attributes": {
      "brightness": 1,
      "cleanliness": 1,
      "sanctity": 1
    },
    "warnings": [],
    "lit_candle_count": 0,
    "lit_character_candle_count": 11,
    "lit_incense_count": 0,
    "active_feces_count": 0,
    "kneel_count": 2,
    "level": 0
  },
  "messages": []
}

About

a Mosquitto DMX light setter and MQTT node middleware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published