Nivst

Eurobricks Vassals
  • Content Count

    32
  • Joined

  • Last visited

About Nivst

Spam Prevention

  • What is favorite LEGO theme? (we need this info to prevent spam)
    City
  • Which LEGO set did you recently purchase or build?
    60197

Profile Information

  • Gender
    Male

Extra

  • Country
    Israel

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @Cosmik42 any chance we can see the new IR transmission capability soon? Since the latest PoweredUp app version you can use the PU color/distance sensor to send IR commands to PF.
  2. I'd check it now, but don't think I can claim this as work related while working from home
  3. Can you call a script on the host filesystem from within BAP?
  4. If you can just push commands to attached devices then you're halfway there. I imagine it will require some work on both ends though.
  5. Sensors are much cheaper and there's a greater variety of them. Also removes the silly 2 devices per hub limit imposed on us :(
  6. @Cosmik42 thanks for the reply, I should be able to manage my layout without needing state[99] ;) Any chance you had time to check the sensor LED bit? Attaching the PoweredUp app control of this setting.
  7. What a newbie mistake! This is why you don't do complicated things at 23:00 The thing that threw me off was that the help says: - State[0-100] - 100 slots of integers... Seems like 99 is also not available - same fatal error. Thanks @djm!
  8. @Cosmik42That's for the hub LED, the color sensor has its own LED. Also, I'm trying to randomize my layout a bit - I've built a siding that I want the train to take randomly by stopping and backing into a switch - but I don't want to hit it every time it goes through the main loop. I added this to one of my triggers, but Hub.State doesn't seem to like being assigned an int through a variable. Random rnd = new Random(); int rand_num = rnd.Next(1, 10); Hub[0].State[100] = rand_num; The result is this error and breaking out of the execution code: FATAL ERROR In Program: Index was outside the bounds of the array. Any help would be appreciated!
  9. Does anyone know how to set the PoweredUp color and distance sensor LED to a certain color? You can do it in the PoweredUp app and setting it to white seems to improve color detection. @Cosmik42 have you thought about adding the option to control the color sensing threshold? Color detection works a lot better with the LEGO app.
  10. @Walt White members of the forum and the trains group on FB have reported better success when mounting the sensor sideways and downwards. You can also use the different hub.states to store and act upon the different stages of your layout.
  11. I've seen people here and on the Facebook page say they're using dongles, either for PC's without or with an old/weak onboard BT card.
  12. Ah, yeah, you're right. What's I've done in our last show was add a PoweredUp remote and assign some actions to several buttons, that way I didn't need to fiddle with the computer when I wanted small things to happen manually.
  13. Color coding can help you differentiate between different hubs and states, for example - hub turns purple when it's about to go into a siding. Or you can also use it as another flag, change color when a certain event triggers or a condition is met, and query the hub for it's color later on for some logic. Have you tried click the "Stop Listening" button at the top left of the program tab? That will stop that branch.
  14. You can get around that by using the hub states as flags.