Skip Navigation

Posts
25
Comments
109
Joined
2 yr. ago

...

Jump
  • They could choose a different business model to get revenue from their videos that doesn't rely on google or the current model where personal privacy is the commodity. It could also be a difficult transition. Is it worth it to them? To you?

  • I don't know if your problem is the same as mine was, but the symptom sounds the same.

    The docker-compose.yaml file shown in the Forgejo documentation for docker installation shows this mount:

     
        
        volumes:
          - ./forgejo:/data
    
    
      

    For me, Forgejo installed and created new resource files in /data and ignored the resource files gitea alread made.

    I changed the volume to:

     
        
        volumes:
          - data:/var/lib/gitea
    
    
      

    Forgejo then recognized the gitea resources.

  • Thanks for that info. I did combine an upgrade (1.20 to 1.21) with the migrations, but I guess I lucked into it working. My problem was that the container's path to the migrated gitea volume was incorrect.

  • Can you see the data you copied inside the container?

    That led me to my problem! I did have the volume mounted, but the container's path was incorrect: Forgejo was recreating it's resource files as a new install because where it was looking for them, they didn't exist.

    Thanks!

  • Both gitea and forgejo are using sqlite3. Gitea 1.20.0, Forgejo 1.21.

  • Can you share some of them so I might have an idea what to try to do differently?

  • Unfortunately that didn't work for me.

  • That is what I did. And it didn't work.

  • Thanks for the references, but at least one example from https://www.home-assistant.io/integrations/intent_script/ seems to be wrong/outdated.

    From that page:

    Local lists

    Sometimes you don't need a slot list available for all intents and sentences, so you can define one locally, making it usable only in the context of the intent data (like a collection of sentences) where it was defined. For example:

     
        
    language: en
    intents:
      AddListItem:
        data:
          - sentences:
              - add {item} to [my] shopping list
            lists:
              item:
                wildcard: true
    
      

    This is the code in my conversations.yaml:

     
        
    intents:
      HowManyDaysUntil:
        data:
          - sentences:
              - how many days until {countdownname}
            lists:
              countdownname:
                - "this"
                - "that"
    
      

    Here are the only difference I see between my code and the example above:

    • I don't have language: en (but when I add it, I get Invalid config for 'conversation' at conversations.yaml, line 1: 'language' is an invalid option for 'conversation', check: conversation->language)
    • The example uses a wildcard and I'm using strings (but I'm following their other examples to have a list of strings)

    However, this yaml gets Invalid config for 'conversation' at conversations.yaml, line 9: value should be a string 'conversation->intents->HowManyDaysUntil->0', got None

    Perhaps I can't have intents in conversations.yaml? Or maybe not lists? I started this project by editing config/intents/sentences/en/_cmmon.yaml but that's a bad idea because an update would wipe my customizations. What's the appropriate place for me to add custom sentences/intents/responses/lists?

  • You're welcome!

  • From what I understand, a timer's duration is the amount of time the timer was set to run for when it was started - the total time, not the time remaining.

    If you're wanting to determine the time remaining in an active timer, you need something like:

     
        
    {% set finish_time = state_attr('timer.timer_entity_id', 'finishes_at') %}
    {{ '00:00' if finish_time == None else (as_datetime(finish_time) - now()).total_seconds() | timestamp_custom('%H:%M', false) }}
    
      

    Or this version, which breaks hours and minutes into speakable parts:

     
        
    {% set finish_time = state_attr('timer.timer_entity_id', 'finishes_at') %} 
    {% set hours, minutes = ('00:00' if finish_time == None else (as_datetime(finish_time) - now()).total_seconds() | timestamp_custom('%H:%M', false)).split(':') | map('int') %} 
    {{ '' if hours == 0 else hours ~ ' hour' if hours == 1 else hours ~ ' hours' }} {{ ' and ' if hours > 0 }} {{ minutes ~ ' minute' if minutes == 1 else minutes ~ ' minutes' }}     
    
      
  • I currently use Photo structure, which is good, but its not open source and the one guy behind it, Matthew, is quite slow with progress. He's super friendly and helpful, and bug fixes are pretty quick. But feature additions are glacial.

    I was considering switching to photoprism but was turned off by the attitude of some of the developers. The product looks prery good, though.

    I'm pretty sure I'm going to switch to Immich, which is also really good.

    A friend uses Piwigo which is decent and has good features, though I find it's very ugly regardless which skin you use.

  • I currently only use proxmox for VMs. Proxmox hosts a TrueNAS VM, TrueNAS controls all but the main (small) drive on the box, proxmox then has access to the other drives through TrueNAS. Kind of neat.

    But I think it would indeed be simpler to only have TrueNAS and use it for both nas and VMs. I have no experience with TrueNAS' VMs.

  • I recently installed Proxmox and TrueNAS on the same box in kind of an ouroboros styles, following this guide: https://github.com/enigmacurry/d.rymcg.tech

    So now I have both. I run VMs in proxmox and use truenas only for nas.

  • I haven't done any research yet. Gitea includes an oauth2 provider. Does Forgejo also provide oauth2 authentication with a similar feature set?

  • I recently installed TrueNAS in Proxmox in this interesting Ouroboros-like configuration. So far it's been great.

  • homeassistant @lemmy.world

    Dreametech L10s Ultra won't clean - it demands to be returned to base

    homeassistant @lemmy.world

    Looking for help integrating Dreametech L10s Ultra with Home Assistant

    homeassistant @lemmy.world

    IR and RF blaster recommendations

    homeassistant @lemmy.world

    DreameBot L10s Ultra questions

    Linux @lemmy.ml

    Java app dropping connection to keyboard?