Search results

  1. fukurou

    cron job java->python

    class TrgEveryNMinutes(TrGEV3): # trigger returns true every minutes interval, post start time def __init__(self, startTime: str, minutes: str): self._playGround: PlayGround = PlayGround() self._minutes = minutes # minute interval between triggerings...
  2. fukurou

    cron job java->python

    python LGcore update: def getFutureInXMin(self, extra_minutes: int) -> str: '''This method returns the date in x minutes''' right_now = datetime.datetime.now() final_time = right_now + datetime.timedelta(minutes=extra_minutes) regex: RegexUtil = RegexUtil()...
  3. fukurou

    cron job java->python

  4. fukurou

    cron job java->python

    class Responder1Word: # learns 1 word input # outputs learned recent words def __init__(self): self.q: UniqueItemSizeLimitedPriorityQueue = UniqueItemSizeLimitedPriorityQueue(5) self.q.insert("chi") self.q.insert("gaga") self.q.insert("gugu")...
  5. fukurou

    cron job java->python

    public class Responder1Word { // learns 1 word inputs // outputs learned recent words UniqueItemSizeLimitedPriorityQueue q= new UniqueItemSizeLimitedPriorityQueue(); public Responder1Word() { q.add("chi"); q.add("gaga"); q.add("gugu")...
  6. fukurou

    cron job java->python

    from __future__ import annotations from LivinGrimoireCoreV2 import * class TimeAccumulator: # accumulator ++ each tick minutes interval def __init__(self, tick: int): # accumulation ticker self._timeGate: TimeGate = TimeGate(tick) self._accumulator: int = 0...
  7. fukurou

    cron job java->python

  8. fukurou

    cron job dev!

    package AXJava; import LivinGrimoire.PlayGround; import java.util.Random; public class Cron extends TrGEV3{ // trigger true limit times, after initial time, and every minutes interval private PlayGround playGround = new PlayGround(); int minutes; // minute interval between...
  9. fukurou

    cron job dev!

    import LivinGrimoire.PlayGround; import java.util.Random; public class TrgEveryNMinutes extends TrGEV3{ // trigger true at minute once per hour private PlayGround playGround = new PlayGround(); int minutes; // minute interval between triggerings private PlayGround pl = new...
  10. fukurou

    👨‍💻 dev new attention seeker skill

    from __future__ import annotations from LivinGrimoireCoreV2 import * class TimeAccumulator: def __init__(self, tick: int): self._timeGate: TimeGate = TimeGate(tick) self._accumulator: int = 0 self._timeGate.openForPauseMinutes() def setTick(self, tick: int)...
  11. fukurou

    Raspberri Pi and Arduino

    change Pi wifi settings assuming your computer now uses a different wifi network than the one in thePi settings. power off the Pi, connect the SD card to your computer. the SD card should have the name boot. add a new file to config the wifi: new text document, wpa_supplicant.conf file...
  12. fukurou

    Raspberri Pi and Arduino

    VNC it enables work with the Pi after SSH connection has been established from the computer. on terminal after ssh pi@ip_address // if you need to exit the SSH connection use the command exit sudo raspi-config choose interface options, VNC, would you like VNC to be enabled?, yes finish. back...
  13. fukurou

    Raspberri Pi and Arduino

    connecting to the Pi via SSH use mac terminal or cmd on windows to SSH or puTTy on windows: Download PuTTY - a free SSH and telnet client for Windows ssh user_name(specified on the SD card flash stage by you)@IPaddress found by angry IP scanner ssh [email protected] press enter. yes. enter...
  14. fukurou

    Raspberri Pi and Arduino

    finding the Pi IP address Angry IP Scanner - the original IP scanner for Windows, Mac and Linux The original IP scanner for Windows, Max and Linux. Fast, friendly, extensible, free and open-source. Scans addresses and ports in any range and exports results in many formats. angryip.org go to...
  15. fukurou

    Raspberri Pi and Arduino

    booting the Pi make sure the power is off and no cables are connected. plug in the SD card into the Pi. connect the Pi to a power supply (not computer USB cable) the green LED should blink randomly, meaning the Pi is booting. a few seconds later the Pi will have connected to the WiFi network.
  16. fukurou

    Raspberri Pi and Arduino

    Pi OS installation aka SD card flashing 1 https://www.raspberrypi.com/software/ Download and install Raspberry Pi Imager to a computer with an SD card reader. Put the SD card you'll use with your Raspberry Pi into the reader and run Raspberry Pi Imager. this software will flash the raspberry...
  17. fukurou

    Raspberri Pi and Arduino

    warnings when manipulating Raspberry Pi, always: 1 shutdown the Pi from the desktop 2 wait 20 seconds and remove the power cable
  18. fukurou

    👨‍💻 dev new attention seeker skill

    so IG the gamification module connects to the last if
  19. fukurou

    Raspberri Pi and Arduino

    :s18:when manipulating hardware: power off everything before correctly power off the Raspberry Pi
  20. fukurou

    👨‍💻 dev new attention seeker skill

    import LivinGrimoire.TimeGate; public class TimeAccumulator { private TimeGate timeGate = new TimeGate(5); private int accumulator = 0; public void setTick(int tick) { timeGate.setPause(tick); } public TimeAccumulator(int tick) { this.timeGate = new...
Top