• 2 Posts
  • 177 Comments
Joined 3 years ago
cake
Cake day: July 4th, 2023

help-circle

  • I’ve found apexcharts-card to be fairly configurable and good looking. I’ve put 2 different data types on the one graph and used two axes (price left, % right). Sometimes the values get “stuck”, but a refresh fixes it.

    Example apexcharts-card using Amber energy price forecast and renewable energy %

    YAML code for my chart
    type: custom:apexcharts-card
    apex_config:
      legend:
        show: false
    graph_span: 12h
    span:
      start: minute
    yaxis:
      - id: price
        min: ~-10
        max: ~40
        decimals: 0
      - id: renewables
        opposite: true
        min: 0
        max: ~100
        decimals: 0
    header:
      show: true
      title: Amber Prices
      show_states: true
      colorize_states: true
    series:
      - entity: sensor.amber_general_forecast
        name: General Forecast
        unit: c/kWh
        color: "#3498DB"
        yaxis_id: price
        data_generator: >
          const data = [];
    
          data.push([hass.states['sensor.amber_general_price'].attributes.nem_date.replace(/0{2}$/,
          "30"), hass.states['sensor.amber_general_price'].attributes.per_kwh*100]);
    
          for(let i = 0; i <= 24; i++) {
            data.push([entity.attributes.forecasts[i].nem_date.replace(/0{2}$/, "30"), entity.attributes.forecasts[i].per_kwh*100])
          }
    
          return data.reverse();
      - entity: sensor.amber_feed_in_forecast
        name: Feed In Forecast
        unit: c/kWh
        color: "#ff9800"
        yaxis_id: price
        data_generator: >
          const data = [];
    
          data.push([hass.states['sensor.amber_feed_in_price'].attributes.nem_date.replace(/0{2}$/,
          "30"), hass.states['sensor.amber_feed_in_price'].attributes.per_kwh*100]);
    
          for(let i = 0; i <= 24; i++) {
            data.push([entity.attributes.forecasts[i].nem_date.replace(/0{2}$/, "30"), entity.attributes.forecasts[i].per_kwh*100])
          }
    
          return data.reverse();
      - entity: sensor.amber_feed_in_forecast
        name: Renewables
        yaxis_id: renewables
        unit: "%"
        color: "#2ECC71"
        data_generator: >
          const data = [];
    





  • 18107@aussie.zonetoLinux@lemmy.ml*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 month ago

    I miss the comfort of having a single OS (not multiple distros to choose from), and a father who would reinstall the OS when I broke it too much again.
    I miss the Macromedia Flash games, bringing games to school on a floppy disk labeled “homework” (then discovering I’d only brought the shortcut).

    All of this is just nostalgia, and while I miss it, I’m happier now with my Linux Distro.
    I’ve customised the desktop environment, broken the OS and reinstalled it myself (several times), and copied games to another device while forgetting to copy the folder containing my save files.
    I guess some things stay the same.











  • AI is mile wide, skin deep.
    It will tell you many things about a wide variety of topics, but it can only provide answers that appear correct on the surface.

    Another analogy would be asking someone to multiply two 3 digit numbers in their head and write the answer in less than five seconds. Most people can guess that the answer will have 6 digits, and most people can write a random 6 digit number. Very few people are capable of checking if the given answer is correct.
    An AI will give you the equivalent of a 6 digit number. If you don’t know the answer, it looks impressive. It’s only when you are capable of finding the answer for yourself that you realise the AI is usually wrong.

    LLMs are made to be really good at language. They are also made to be confident. They will always give well written answers with the highest confidence.
    If you want to rephrase an email or improve a resume, an LLM can give valuable feedback on various snippets. That doesn’t mean it’s always right, and it doesn’t mean you should always throw away what you have in favour of the LLM output.

    One of the biggest downsides I’ve personally experienced (and you’ve made reference to) is gradually falling out of the practice of thinking. Thinking is a skill that takes constant practice, and it’s really easy to get into the habit of relying on an AI instead of thinking. In less time than you’d expect, you’re out of practice and unable to do simple tasks that you used to do easily.
    This wouldn’t be a big deal if AI worked all the time, but in and case where it can’t give an answer, you can no-longer fill in the blanks.

    In programming you have 3 tiers of errors: compiler errors, runtime errors, and logic errors.
    The easiest is compiler errors - the compiler can often tell you exactly how to fix it. Runtime errors are harder to identify, but an AI can help to resolve them.
    The hardest is logic errors. These do not crash the program, and do not notify you of their existence. And AI will not usually notice these errors.

    When programming yourself, you often think of all the ways you could solve the task, and the act of thinking often brings edge cases and logic issues to mind. When asking an AI to do the work, the AI does not think and the prompter does not think, so no-one preempts any logic errors. This is already leading to massive amounts of technical debt, the extent of which is yet to be fully realised. One only has to look at recent Windows 11 bugs to see how quality is reduced and debugging time is increased whenever AI is used.

    Writing code is 5% of the time/cost, and maintaining code is the other 95%. AI can reduce the writing time, but drastically increases maintenance costs as a side effect. If you want to run a business for any reasonable period of time, you want the exact opposite.

    The use of AI actively de-skills workers, increases subtle mistakes, reduces proofreading and error checking, and makes the company reliant on a costly external tool that could change or disappear at any moment.